<div class="smsUsers view">
<h2><?php  __('Sms User');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Student Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['student_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['password']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password Count'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['password_count']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Birthday'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['birthday']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Registered Day'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['registered_day']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mobile'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['mobile']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Company'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['company']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Picture'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['picture']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Is Active'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $smsUser['SmsUser']['is_active']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Sms Classes'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($smsUser['SmsClasses']['name'], array('controller' => 'sms_classes', 'action' => 'view', $smsUser['SmsClasses']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Sms Courses'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($smsUser['SmsCourses']['name'], array('controller' => 'sms_courses', 'action' => 'view', $smsUser['SmsCourses']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Sms Users Roles'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($smsUser['SmsUsersRoles']['id'], array('controller' => 'sms_users_roles', 'action' => 'view', $smsUser['SmsUsersRoles']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Sms User', true), array('action' => 'edit', $smsUser['SmsUser']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Sms User', true), array('action' => 'delete', $smsUser['SmsUser']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $smsUser['SmsUser']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Sms Users', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms User', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sms Classes', true), array('controller' => 'sms_classes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms Classes', true), array('controller' => 'sms_classes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sms Courses', true), array('controller' => 'sms_courses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms Courses', true), array('controller' => 'sms_courses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sms Users Roles', true), array('controller' => 'sms_users_roles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms Users Roles', true), array('controller' => 'sms_users_roles', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Sms Users Roles');?></h3>
	<?php if (!empty($smsUser['Role'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Role'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($smsUser['Role'] as $role):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $role['id'];?></td>
			<td><?php echo $role['role'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'sms_users_roles', 'action' => 'view', $role['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'sms_users_roles', 'action' => 'edit', $role['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'sms_users_roles', 'action' => 'delete', $role['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $role['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Role', true), array('controller' => 'sms_users_roles', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
